/**
 * All code in ProdSup.java by Jon.
 */

package Classes;
//Jonathan Axford
public class ProdSup {
	String ProdName, SupName, ProdSupID, SupID, ProdID;

	/**
	 * @param prodName
	 * @param supName
	 * @param prodSupID
	 * @param supID
	 * @param prodID
	 */
	public ProdSup(String prodName, String supName, String prodSupID,
			String supID, String prodID) {
		super();
		ProdName = prodName;
		SupName = supName;
		ProdSupID = prodSupID;
		SupID = supID;
		ProdID = prodID;
	}
	public ProdSup()
	{
		ProdName = "";
		SupName = "";
		ProdSupID = "-1";
		SupID = "-1";
		ProdID = "-1";
	}
	public String getProdName() {
		return ProdName;
	}

	public void setProdName(String prodName) {
		ProdName = prodName;
	}

	public String getSupName() {
		return SupName;
	}

	public void setSupName(String supName) {
		SupName = supName;
	}

	public String getProdSupID() {
		return ProdSupID;
	}

	public void setProdSupID(String prodSupID) {
		ProdSupID = prodSupID;
	}
	
	public int getProdSupInt() {
		return Integer.parseInt(ProdSupID);
	}

	public void setProdSupID(int prodSupID) {
		ProdSupID = Integer.toString(prodSupID);
	}
	
	@Override
	public String toString() {
		return ProdName + " by " + SupName;
	}

	public String getSupID() {
		return SupID;
	}

	public void setSupID(String supID) {
		SupID = supID;
	}
	public int getSupInt() {
		return Integer.parseInt(SupID);
	}

	public void setSupID(int supID) {
		SupID = Integer.toString(supID);
	}

	public String getProdID() {
		return ProdID;
	}

	public void setProdID(String prodID) {
		ProdID = prodID;
	}
	public int getProdInt() {
		return Integer.parseInt(ProdID);
	}

	public void setProdID(int prodID) {
		ProdID = Integer.toString(prodID);
	}

}
